Skip to main content

How To Preload Fonts On Fluent Docker Container

Unfortunately, as a result of licensing restrictions, we cannot include fonts in the Fluent RESTful Engine container. However, it is easy to preload the fonts you need to the Fluent RESTful Engine container. The steps below describe how to preload to the Fluent RESTful Engine container.

Requirements

  • Docker Desktop Installed
  • The font files you want on the container

Create Font Repository

  1. Create a new folder on your computer.
  2. Copy the font files you want to the new folder.

Create Dockerfile

  1. In the same folder as the font repository, create a new file called "Dockerfile" with the following contents:
    FROM windwardstudios/fluent-restful-engine:latest
    COPY {font1} /usr/share/fonts
    COPY {font2} /usr/share/fonts
    COPY {font3} /usr/share/fonts
    .
    .
    .

Note: You can copy as many fonts as you want. Make sure to replace {font1}, {font2}, etc. with the names of the font files you want to copy.

Build Docker Image From Dockerfile

  1. Open a command prompt and navigate to the folder you created.
  2. Run the following command (Replace {VERSION} with the version of the Fluent RESTful Engine version you are using and make sure to include the period at the end):
    docker build -t fluent-restful-engine-fonts:{VERSION} .